class F:
    pass

class E(F):

    pass
class D(F):
    pass
class C(E):
    pass

class B(D,E):
    pass

class A(B,C):
    pass

a = A()
print (A.__mro__)

# A - B - D -C -E -F - O